import request from '@/utils/request'

export function getStoreLsit(query) {
  return request({
    url: '/mms/v1/store/list',
    method: 'get',
    params: query
  })
}

export function createStore(data) {
  return request({
    url: '/mms/v1/store/save',
    method: 'post',
    data
  })
}

export function reStoreStore(data) {
  return request({
    url: '/admin/readmin',
    method: 'get',
    data
  })
}

export function updateStore(data) {
  return request({
    url: '/admin/update',
    method: 'post',
    data
  })
}

export function deleteStore(data) {
  return request({
    url: '/admin/delete',
    method: 'post',
    data
  })
}

export function getClassTimesCount(query) {
  return request({
    url: '/mms/v1/store/list/classTimesCount',
    method: 'get',
    params: query
  })
}
